var detialId = getQueryString("detialId");

//查看详情
function pubDetialFun(){
    $.ajax({
		url: API_URL+'curriculum/findCurriculum?currid='+detialId+'&openid='+openid
        type: 'GET',
        dataType: "JSON",
        data:'',
        async: false,
        success: function (obj){
            if (obj.status.code == 0) {
                var myData = obj.data;
				if(myData[0].agent_icon == null || myData[0].agent_icon == ''){
					myData[0].agent_icon ='../img/default.png';
				}
                var Str = '';
                Str += '<div class="head_content">'+
                            '<img src=\"'+myData[0].agent_icon+'\" alt="">'+
                            '<h3>'+myData[0].agent_name+'</h3>'+
                            '<p>'+myData[0].createtime_str+'</p>'+
                        '</div>'+
                        '<p class="article clear">'+myData[0].content+'</p>'+
                        '<img class="detials_img" src=\"'+myData[0].photo+'\" alt="">';
            }
            $('.main_content.new').html(Str);
        },
        error: function (data){
            console.log("服务器异常!");
        }
    });
}